Page({
  navigateDetail(){
    wx.navigateTo({
      url: '/pages/detail/detail',
      success:()=>{
        // console.log(this)
        
      }
    })
  },
  redirectDetail(){
    wx.redirectTo({
      url: '/pages/detail/detail?username=张三',
    })
  },
  switchMy(){
    wx.switchTab({
      url: '/pages/my/my?username=八戒',
    })
  },
  relaunchMy(){
    wx.reLaunch({
      url: '/pages/my/my?username=悟空',
    })
  }
})